#docker rmi -f nacos/nacos-server:2.0.3
docker pull nacos/nacos-server:2.0.3
rm -rf /cardone/docker/images/nacos/nacos-server_2.0.3.tar
mkdir -p /cardone/docker/images/nacos
docker save nacos/nacos-server:2.0.3 > /cardone/docker/images/nacos/nacos-server_2.0.3.tar
#docker load < /cardone/docker/images/nacos/nacos-server_2.0.3.tar



# docker node update --label-rm cardone-nacos_nacos-1 cardone-01-01
docker node update --label-add cardone-nacos_nacos-1=true cardone-01-06

docker stack rm cardone-nacos

docker stack deploy -c /cardone/middlewares/nacos/prod.yml cardone-nacos

for i in {1..10}  
do  
sleep $i

docker stack ps cardone-nacos

docker service ls
done

docker service logs cardone-nacos_nacos-1 -f --tail 300


